#{extends 'main.html' /}

<div id="crudList" class="${type.name}">

  <h2 id="crudListTitle">&{'crud.list.title', type.name}</h2>  
  
  <div id="crudListSearch">
    #{crud.search /}
  </div>

  <div id="crudListTable">
    #{crud.table fields:['name', 'location', 'Action'], sort:'false'}
      #{crud.custom 'Action'}
        <a href="/admin/employees/list/${object.id}">Employees</a> |
        <a href="/admin/payrollperiods?clientId=${object.id}">Payroll Periods</a>
      #{/crud.custom}
    #{/crud.table}
  </div>

  <div id="crudListPagination">
    #{crud.pagination /}
  </div>

  <p id="crudListAdd">
    <a href="@{blank()}">&{'crud.add', type.modelName}</a>
  </p>

</div>
